﻿using System;

namespace BSharp.Compiler.Emit
{
	public class Bz : IntermediateInstruction
	{
		public readonly SymbolReference Target;

		public Bz (SymbolReference target)
		{
			Target = target;
		}

		public override void Visit (IntermediateCompiler compiler)
		{
			compiler.Compile (this);
		}

		public override string ToString ()
		{
			return String.Format ("BEW {0}", Target.SymbolName);
		}
	}
}

